USE [@DATABASE]

IF  EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_CihazTur_isDeleted]') AND type = 'D')
BEGIN
ALTER TABLE [dbo].[CihazTur] DROP CONSTRAINT [DF_CihazTur_isDeleted]
END

USE [@DATABASE]

/****** Object:  Table [dbo].[CihazTur]    Script Date: 02/11/2013 21:30:36 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[CihazTur]') AND type in (N'U'))
DROP TABLE [dbo].[CihazTur]

USE [@DATABASE]

/****** Object:  Table [dbo].[CihazTur]    Script Date: 02/11/2013 21:30:36 ******/
SET ANSI_NULLS ON

SET QUOTED_IDENTIFIER ON

CREATE TABLE [dbo].[CihazTur](
	[ctID] [int] IDENTITY(1,1) NOT NULL,
	[ChzTur] [nvarchar](200) NULL,
	[isDeleted] [bit] NULL,
 CONSTRAINT [PK_CihazTur] PRIMARY KEY CLUSTERED 
(
	[ctID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

ALTER TABLE [dbo].[CihazTur] ADD  CONSTRAINT [DF_CihazTur_isDeleted]  DEFAULT ((0)) FOR [isDeleted]